package cn.itcast.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 预约设置
 */
@Data
public class OrderSetting implements Serializable{

    @ExcelIgnore
    private Integer id ;

    @ExcelProperty("日期")
    @DateTimeFormat("yyyy-MM-dd")
    private Date orderDate;//预约设置日期
    @ExcelProperty("可预约数量")
    private int number;//可预约人数
    @ExcelIgnore
    private int reservations ;//已预约人数

    public OrderSetting() {
    }

    public OrderSetting(Date orderDate, int number) {
        this.orderDate = orderDate;
        this.number = number;
    }

}
